package com.ruoyi.system.domain;

import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 会议预约表对象 meeting_appointment
 *
 * @author ruoyi
 * @date 2023-10-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MeetingAppointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 会议主题 */
    @Excel(name = "会议主题")
    private String title;

    /** 发起人 */
    @Excel(name = "发起人")
    private String promoter;

    /** 主持人 */
    @Excel(name = "主持人")
    private String host;

    /** 会议室id */
    @Excel(name = "会议室id")
    private Long meettingId;

    /** 参会人数 */
    @Excel(name = "参会人数")
    private Long number;
    /** 会议开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会议日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date datee;

    /** 会议开始时间 */
//    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "HH:mm:ss")
    @DateTimeFormat(pattern = "HH:mm")
    @Excel(name = "会议开始时间", width = 30, dateFormat = "HH:mm:ss")
    private LocalTime startDate;

    /** 会议结束时间 */
//    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "HH:mm:ss")
    @DateTimeFormat(pattern = "HH:mm:ss")
    @Excel(name = "会议结束时间", width = 30, dateFormat = "HH:mm:ss")
    private LocalTime endDate;

    /** 会议时长 */
    @Excel(name = "会议时长")
    private String duration;

    /** 会议状态:1未开始，2进行中，3已结束 */
    @Excel(name = "会议状态:1未开始，2进行中，3已结束")
    private String status;

    /** 会议描述 */
    @Excel(name = "会议描述")
    private String description;

    private MeettingRoom meettingRoom;
}
